home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / tip / printco.tip < prev    next >
Text File  |  1993-09-15  |  2KB  |  69 lines

  1. % This macro source file is from the four volume series
  2. % "TeX in Practice" by Stephan von Bechtolsheim, published
  3. % 1993 by Springer-Verlag, New York.
  4. % Copyright 1993 Stephan von Bechtolsheim.
  5. % No warranty or liability is assumed.
  6. % This macro may be copied freely if no fees other than
  7. % media cost or shipping charges are charged and as long
  8. % as this copyright and the following source code itself
  9. % is not changed. Please see the series for further information.
  10. %
  11. % Version: 1.0
  12. % Date: May 1, 1993
  13. %
  14. %
  15. % This source code is documented in 3.4.1, p. I-68.
  16. % Original source in file "reg1.TEX", starting line 2088.
  17. \wlog{L: "printco.tip" ["reg1.TEX," l. 2088, p. I-68]}%
  18. % This file DOES belong to format "texip."
  19. \catcode`\@ = 11
  20. \def\arabic #1{\number#1}
  21. \def\roman #1{%
  22.     \romannumeral #1%
  23. }
  24. \def\Roman #1{%
  25.     \ifcase #1\or
  26.         I\or II\or III\or IV\or V\or
  27.         VI\or VII\or VIII\or IX\or X\or
  28.         XI\or XII\or XIII\or XIV\or XV\or
  29.         XVI\or XVII\or XVIII\or XIX\or XX\or
  30.         XXI\or XXII\or XXIII\or XXIV\or XV%
  31.     \else
  32.         \errmessage{\string\Roman: argument \number#1 out
  33.             of range, larger than 25.}%
  34.     \fi
  35. }
  36. \def\alph #1{%
  37.     \ifcase #1%
  38.         \or a\or b\or c\or d\or e\or f\or g\or h\or i% 
  39.     \else
  40.         \@Morealph{#1}%
  41.     \fi
  42. }
  43. \def\@Morealph #1{%
  44.     \ifcase #1%
  45.         \or  \or  \or  \or  \or  \or  \or  \or  \or
  46.         \or j\or k\or l\or m\or n\or o\or p\or q\or r%
  47.         \or s\or t\or u\or v\or w\or x\or y\or z%
  48.     \else
  49.         \errmessage{\string\@Morealph: argument too large.}%
  50.     \fi
  51. }
  52. \def\Alph #1{%
  53.     \ifcase #1%
  54.     \or A\or B\or C\or D\or E\or F\or G\or H\or I%
  55.     \else
  56.         \@MoreAlph{#1}%
  57.     \fi
  58. }
  59. \def\@MoreAlph #1{%
  60.     \ifcase #1%
  61.         \or  \or  \or  \or  \or  \or  \or  \or  \or
  62.         \or J\or K\or L\or M\or N\or O\or P\or Q\or R%
  63.         \or S\or T\or U \or V\or W\or X\or Y\or Z%
  64.     \else
  65.         \errmessage{\string\@MoreAlph: argument too large.}%
  66.     \fi
  67. }
  68. \catcode`\@ = 12
  69.